package com.jiashihui.schema_lgorithm.schema.singleton;

/**
 * @ClassName SingletonTest
 * @Description TODO
 * @Author Administrator
 * @Date 8:57
 * @Version 1.0
 **/
public class SingletonTest {
    public static void main(String[] args) {
        // EnumSingleton.INSTANCE.method();
//        Singleton3 singleton3 = Singleton3.getInstance();
//        System.out.println(singleton3.getUser());
//
//        Singleton3 singleton4 = Singleton3.getInstance();
//        System.out.println(singleton4.getUser() == singleton3.getUser());
//
//        Singleton3 singleton5 = Singleton3.getInstance();
//        System.out.println(singleton5.getUser() == singleton3.getUser());
//
//        Singleton3 singleton6 = Singleton3.getInstance();
//        System.out.println(singleton6.getUser() == singleton3.getUser());

        SingletonCas singletonCas = SingletonCas.getInstance();
        System.out.println(singletonCas);
    }
}
